<template>
  <div class="content">
    <!-- <h1>导航加导航区域内容</h1> -->
    <el-row class="tac">
      <el-col :span="6">
        <el-menu
          default-active="/content/shouye"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          :router="true"
        >
          <el-menu-item index="/content/shouye">
            <i class="el-icon-s-home"></i>
            <span slot="title">首页</span>
          </el-menu-item>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>学生信息</span>
            </template>
            <el-menu-item index="/content/stuinfo">学生信息录入</el-menu-item>
            <el-menu-item index="/content/stushow">学生信息展示</el-menu-item>
            <el-menu-item index="/content/stushowhou"
              >学生信息后台分页展示</el-menu-item
            >
            <el-menu-item index="2-3">学生信息查询</el-menu-item>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>学生成绩</span>
            </template>
            <el-menu-item index="3-1">入学成绩</el-menu-item>
            <el-menu-item index="3-2">期中成绩</el-menu-item>
            <el-menu-item index="3-3">期末成绩</el-menu-item>
            <el-menu-item index="3-4">成绩查询</el-menu-item>
          </el-submenu>
          <el-menu-item index="4">
            <i class="el-icon-document"></i>
            <span slot="title">在线客服</span>
          </el-menu-item>
          <el-menu-item index="5">
            <i class="el-icon-setting"></i>
            <span slot="title">安全问题</span>
          </el-menu-item>
        </el-menu>
      </el-col>
      <el-col :span="18">
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { Menu, MenuItem, Submenu } from "element-ui";
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: {
    "el-menu": Menu,
    "el-menu-item": MenuItem,
    "el-submenu": Submenu,
  },

  computed: {},

  beforeMount() {},

  mounted() {},

  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },

  watch: {},
};
</script>
<style lang='css' scoped>
.content {
  color: #f5f5f5;
}
</style>